import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NZ_I18N } from 'ng-zorro-antd/i18n';
import { zh_CN } from 'ng-zorro-antd/i18n';
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HomeComponent } from 'src/components/home/home.component';
import { LoginComponent } from 'src/components/login/login.component';
import { NzMessageModule } from 'ng-zorro-antd/message';
import { NzGridModule } from 'ng-zorro-antd/grid';
import { NzSpaceModule } from 'ng-zorro-antd/space';
import { NzIconModule } from 'ng-zorro-antd/icon';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzLayoutModule } from 'ng-zorro-antd/layout';
import { NzMenuModule } from 'ng-zorro-antd/menu';

import { NzTableModule } from 'ng-zorro-antd/table';
import { NzDrawerModule } from 'ng-zorro-antd/drawer';
import { NzInputModule } from 'ng-zorro-antd/input';
import { NzSelectModule  } from 'ng-zorro-antd/select';
import { IconDefinition } from '@ant-design/icons-angular';
import { NzTagModule } from 'ng-zorro-antd/tag';
import{NzDividerModule} from 'ng-zorro-antd/divider';
import { NzModalModule } from 'ng-zorro-antd/modal';
import { NzPopoverModule } from 'ng-zorro-antd/popover';
import { NzFormModule } from 'ng-zorro-antd/form';

registerLocaleData(zh);
import { PlusOutline, StopOutline, PlayCircleOutline,CaretRightOutline ,ToolOutline,CloseOutline,RedoOutline} from '@ant-design/icons-angular/icons';
import { SshComponent } from 'src/components/Ssh/Ssh.component';
const icons: IconDefinition[] = [ PlusOutline, PlayCircleOutline, StopOutline,CaretRightOutline ,ToolOutline,CloseOutline,RedoOutline];
@NgModule({
  declarations: [
    AppComponent,
    HomeComponent,
    LoginComponent,
    SshComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    FormsModule,
    HttpClientModule,
    BrowserAnimationsModule,
    NzMessageModule,
    NzButtonModule,
    NzLayoutModule,
    NzMenuModule,
    NzGridModule,
    NzSpaceModule,
    NzTableModule,
    NzDrawerModule,
    NzInputModule,
    NzSelectModule,
    FormsModule,
    NzFormModule,
    BrowserAnimationsModule,
    NzTagModule,
    NzDividerModule,
    NzModalModule,
    NzPopoverModule,
    NzIconModule.forRoot(icons)
  ],
  providers: [{ provide: NZ_I18N, useValue: zh_CN }],
  bootstrap: [AppComponent]
})
export class AppModule { }
